package com.rockcent.mall.lib.repository;

import com.rockcent.mall.lib.domain.Product;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by Marco on 16-11-14.
 * 产品管理
 */
@Repository
public interface MallProductRepository extends JpaRepository<Product, Long>, JpaSpecificationExecutor, MallProductRepositoryCustom {
    List<Product> findByMarketId(Long marketId);
}
